﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.Dtos
{
    public class BlikProductionWasteDto
    {
        /// <summary>
        /// 生产废料id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]//自增主键
        public int PWId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PDocumentNumber { get; set; }

        /// <summary>
        /// 生产废料编号
        /// </summary>
        public string? ProductionWasteNumber { get; set; }

        /// <summary>
        /// 生产废料主题
        /// </summary>
        public string? ProductionWasteTopic { get; set; }
        /// <summary>
        /// 废料日期
        /// </summary>
        public DateTime? ProductionDate { get; set; }
        /// <summary>
        /// 是否入库
        /// </summary>
        public int PIsStorage { get; set; }
        /// <summary>
        /// 制单人员
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PDocumentMakers { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)")]//设计长度
        public string? PRemark { get; set; }

        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }

        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; }
        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string? UpdName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdTime { get; set; }

        public List<ProductWasteLists> ProductWasteLists { get; set; }


    }

    public class ProductWasteLists
    {
        public int PSPId { get; set; }
        /// <summary>
        /// 生产废料编号
        /// </summary>
        public string? ProductionWasteNumber { get; set; }
        public int ProductId { get; set; }
        public string PName { get; set; }
        public string PSpec { get; set; }
        public string PUnit { get; set; }
        public string PNumber { get; set; }
        public int PScrapsNumber { get; set; }
    }


}
